package com.test.ssm.controller;

import com.test.ssm.pojo.Provider;
import com.test.ssm.service.ProviderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 徒有琴
 */
@RestController
@RequestMapping("/bill")
public class BillContoller {

    @Autowired
    private ProviderService providerService;

    @RequestMapping(params = "act=pro")
    public List<Provider> providers() {
        return providerService.getProviderList();
    }
}
